import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer'

const styles = theme => ({
    drawer: {
        flexShrink: 0,
    }
});


class PermanentDrawerRight extends React.Component {

    render() {
        const { classes, children} = this.props
        return (
            <Drawer className={classes.drawer}
                    variant="permanent"
                    anchor="right">{children}</Drawer>
        );
    }
}

PermanentDrawerRight.propTypes = {
    classes: PropTypes.object.isRequired,
};

export default withStyles(styles)(PermanentDrawerRight);
